function NIRS = parseNIRS(NIRS,NAME)

SRCinds = [1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8];
DETinds = [1, 2, 1, 3, 2, 3, 4, 2, 4, 5, 3, 4, 6, 4, 5, 6, 5, 7, 6, 7];
LAMBDA  = [760, 850];                                                       %nm
DIS     = 3;                                                                %cm



% I(Time, Wavelength, Pair)
%I(:, 1, :) = NIRS.time_series(2:(length(SRCIND)+1), :)';

%Lets just go with the raw right now
NIRSdata = [NIRS.time_series(2:41,:); NIRS.time_stamps(1,:)];

save(['./ToUpload/NIRS_', NAME, '.mat'], 'NIRSdata')


%{
%for a quck visual check

for i = 2:41
    subplot(2,1,1)
    plot(NIRS.time_series(i,:))
    title(i-1)
subplot(2,1,2)
    pwelch(NIRS.time_series(i,:),[],[],[],NIRS.info.effective_srate)  
    pause()
end
%}

